import React from "react";
import { Icon } from "antd";

export default ({ onFresh }) => [
  {
    name: "userName",
    type: "string",
    attr: {
      placeholder: "请输入管理员账号",
      prefix: <Icon type="user" style={{ color: "rgba(0,0,0,.25)" }}/>
    },
    option: {
      rules: [
        {
          required: true,
          type: "string",
          message: "请输入管理员账号"
        }
      ]
    }
  },
  {
    name: "password",
    type: "password",
    attr: {
      placeholder: "请输入账号密码",
      prefix: <Icon type="lock" style={{ color: "rgba(0,0,0,.25)" }}/>
    },
    option: {
      rules: [
        {
          required: true,
          type: "string",
          message: "请输入账号密码"
        }
      ]
    }
  }
];
